package com.jiepu.daily.corejava.advanceed.part7io.day0810;

import org.jetbrains.annotations.NotNull;

import java.io.*;

/**
 * @Description:
 * @author: xinjie
 * @date: 2020/8/10  11:07
 */
public class IODemo14 {
	static class MYFIS extends FileInputStream{

		public MYFIS(@NotNull String name) throws FileNotFoundException {
			super(name);
		}

		public MYFIS(@NotNull File file) throws FileNotFoundException {
			super(file);
		}

		public MYFIS(@NotNull FileDescriptor fdObj) {
			super(fdObj);
		}
	}
	public static void main(String[] args) throws IOException {
		String path = "src/com/jiepu/daily/advanceed/part7_io/io_test/demo14.txt";
		FileInputStream fis = new FileInputStream(path);
		InputStreamReader isr = new InputStreamReader(fis);
		int i = -1;
		while ((i = isr.read()) != -1) {
			System.out.println((char)i);
		}


	}
}
